package edu.hqu.deepspace.pojo;

public class Product {
    private int pid;
    private String pname;
    private int pnum;
    private int psold;
    private String pcolor;
    private int pmoney;
    private String pimg;

    public Product(int pid, String pname, int pnum, int psold, String pcolor, int pmoney, String pimg) {
        this.pid = pid;
        this.pname = pname;
        this.pnum = pnum;
        this.psold = psold;
        this.pcolor = pcolor;
        this.pmoney = pmoney;
        this.pimg = pimg;
    }

    public Product() {
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public int getPnum() {
        return pnum;
    }

    public void setPnum(int pnum) {
        this.pnum = pnum;
    }

    public int getPsold() {
        return psold;
    }

    public void setPsold(int psold) {
        this.psold = psold;
    }

    public String getPcolor() {
        return pcolor;
    }

    public void setPcolor(String pcolor) {
        this.pcolor = pcolor;
    }

    public int getPmoney() {
        return pmoney;
    }

    public void setPmoney(int pmoney) {
        this.pmoney = pmoney;
    }

    public String getPimg() {
        return pimg;
    }

    public void setPimg(String pimg) {
        this.pimg = pimg;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pnum=" + pnum +
                ", psold=" + psold +
                ", pcolor='" + pcolor + '\'' +
                ", pmonery=" + pmoney +
                ", pimg='" + pimg + '\'' +
                '}';
    }


}
